// Add two values from Switches and an Immediate value.txt
//
// Assembler test - load switch inputs to LEDS
// U M.H.
// 01/12/21
//
LIL R0, 0      // Set R0 to the address of the switches (0xC000)
LIU R0, 0x38   
LIL R1, 0      // Set R1 to the Address of the LEDs (0xC200)
LIU R1, 0x08 
LIU R1, 0x38



LOAD R2,(R0)   // Get the switch values to R2 - Load instructions must be done twice
LOAD R2,(R0)

LIL R3, 0x07	// Load immediate value 7
ADC R3, R2		// Add contents of R3 and R2 into R3
STORE (R1), R3  // Copy R3 to the LEDs
